<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
<h:outputStylesheet library="css" name="default.css" target="head" />
</h:head>
<h:body>
	<f:metadata>
		<f:event type="preRenderView" listener="#{showPacPers.preloadData()}" />
	</f:metadata>
	<p:button value="Home" outcome="index.xhtml"/><br/>
	
		
  <p:fieldset legend="Pacchetto Travel Dream">  
    <h:panelGrid columns="2" cellpadding="10">  
    	 <h:outputText style="font-weight:bold;" value="NOME PACCHETTO :"/>
        <h:outputText   value="#{showPacPers.pacchetto.getNome()}" />  
         <h:outputText style="font-weight:bold;" value="DESCRIZIONE PACCHETTO :"/>
        <h:outputText    value="#{showPacPers.pacchetto.getDescrizione()}" />  
    </h:panelGrid>  
</p:fieldset>  
  <h:form>  
    <p:panel header="Validate">  
        <p:messages />
		
		
  		<p:message for="errore_invito" errorClass="error" id="errore_invito"/>
        <h:panelGrid columns="5" cellpadding="5" id="inviteu">  
            <h:outputLabel for="name" value="email" />  
            <p:inputText id="name" value="#{showPacPers.email}" label="email"/>  
            <p:message for="name" />     
   </h:panelGrid>  
  
        <p:commandButton value="Invita" actionListener="#{showPacPers.addInfo}"  icon="ui-icon-check" validateClient="true" />  
  <p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" />
    </p:panel>  
</h:form>  
</h:body>
</html>